#!/bin/bash

if [ ! -e "${HOME}/.${USER}/profile" ]
then
  mkdir ${HOME}/.${USER}
  echo '#!bin/bash' > ${HOME}/.${USER}/profile
fi
export PYTHONPATH=${HOME}/.local/python
grep -q 'export PYTHONPATH=${HOME}/.local/python' ~/.${USER}/profile
if [ $? -eq 1 ];then
sudo sed -i'' '$aexport PYTHONPATH=${HOME}/.local/python' ~/.${USER}/profile
fi

if [[ ! -d ${HOME}/.local/python ]]
then
    mkdir -p ${HOME}/.local/python
fi
DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )

# cp common tools python script
#cp ${DIR}/ping.py ${HOME}/.local/python
#cp ${DIR}/readfile.py ${HOME}/.local/python
